{include file="public/header" /}
<style>
    .am-dropdown {
        width: 100%;
        margin-left: 30px;
        margin-bottom: 10px;
    }

    .am-dropdown div {
        color: #000;
    }
</style>
{css href="__ROOT__/static/public/umeditor/themes/default/css/umeditor.css" /}
{js href="__ROOT__/static/public/umeditor/third-party/template.min.js" /}
{js href="__ROOT__/static/public/umeditor/umeditor.config.js" /}
{js href="__ROOT__/static/public/umeditor/umeditor.min.js" /}
<form method="post" class="form-x">
    <div class="panel admin-panel" style="overflow:hidden;border: none">
        <br/>
        <div class="am-dropdown">
            <div class="label">
                <label style="font-size: 18px">广告页</label>
            </div>
            <div class="field"></div>
        </div>
        <div class="am-dropdown">
            <img src="{$data.image}" style="height: 160px;width: 100px">
        </div>
        <div class="am-dropdown">
            <div class="input-inline clearfix">
                <div class="label">
                    <label for="image">{:lang('label')['image']}</label>
                </div>
                <div class="field">
                    <input type="text" readonly class="input input-auto" id="image" name="image" value="{$data.image}"
                           size="25" placeholder="{:lang('label')['image']}"
                           data-validate="required:{:lang('currency')['required']}"/>
                    <span class="addbtn"><button type="button" data-id="image" class="button upload">{:lang('form')['file']}</button></span>
                </div>
            </div>
        </div>
        <div class="am-dropdown">
            <div class="label">
                <label>显示时间</label>
            </div>
            <div class="field">
                <input type="number" class="input input-auto" id="time" name="time" value="{$data.time}" style="width: 100px"
                       placeholder="显示时间" data-validate="required:{:lang('currency')['required']}"/> 秒
            </div>
        </div>
        <div class="am-dropdown">
            <div class="label">
                <label>状态</label>
            </div>
            <div class="field">
                <div class="button-group button-group-small radio">
                    <label class="button {if $data.status == 1}active{/if}">
                        <input name="status" value="1" {if $data.status == 1}checked="checked"{/if} type="radio"><span class="icon icon-check"></span> 开启
                    </label>
                    <label class="button {if $data.status == 0 || !$data.status}active{/if}">
                        <input name="status" value="0" {if $data.status == 0 || !$data.status}checked="checked"{/if} type="radio"><span class="icon icon-times"></span> 关闭
                    </label>
                </div>
            </div>
        </div>
        <br />
        <div class="am-dropdown">
            <div class="label">
                <label style="font-size: 18px">关于我们</label>
            </div>
            <div class="field"></div>
        </div>
        <div class="am-dropdown">
            <div class="label">
                <label>内容</label>
            </div>
            <div class="field">
                <script data-validate="required:{:lang('currency')['required']}" type="text/plain" name="about" id="myEditor" style="width:95%;height:240px;">{$data.about}</script>
            </div>
        </div>
        <div class="form-button">
            <button class="button bg-main" type="submit">{:lang('form')['submit']}</button>
        </div>
        <br/>
        </div>
    </form>
<script>
    var um = UM.getEditor('myEditor');
</script>
{include file="public/footer" /}